package com.example.springbootrbac.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootrbac.entity.UserEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserRepository extends BaseMapper<UserEntity> {
    @Insert("insert into user_role values(#{userId},2)")
    void addUserToRole(@Param("userId") Long userId);
}
